<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> <script type="text/javascript" src="__JS__/rem.js"></script>
    <script type="text/javascript" src="__JS__/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="__JS__/layer_mobile/layer.js"></script>
    <link type="text/css" rel="stylesheet" href="__CSS__/doctor.css" />
    <link type="text/css" rel="stylesheet" href="__CSS__/clinic.css" />
    <link type="text/css" rel="stylesheet" href="__CSS__/person.css" />
    
    <script src="__JS__/zepto.min.js"></script>
    <link href="__CSS__/weui.min.css" rel="stylesheet">
	<link rel="stylesheet" href="__SaleManager__/stylesheets/index.css">

</head>
<style>
body{
	background: #F8F8F8;
}
.aui-switch:before {
    width: 1.1rem;
    height: 1.1rem;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.6rem;
    background-color: #fff;
    content: '';
    -webkit-transition: left 0.2s;
    transition: left 0.2s;
}
.P_Header {
    width: 20rem;
    height: 2.75rem;
    line-height: 2.75rem;
    overflow: hidden;
    background: #28a0d4;
    position: fixed;
    top: 0;
    margin: auto;
    z-index: 99;
}
.bg_f.no_pad {
    padding-bottom: 0;
}
.newsNotice {
    height: 2.1875rem;
    line-height: 2.1875rem;
}
.bg_f {
    background: #fff;
    padding-bottom: 0.9375rem;
}
.P_main {
    padding: 0 0.9375rem;
    overflow: hidden;
}
.P_con{
	padding-top:1.5rem;	
}
.ov_h {
	
    overflow: hidden;
}
.left {
    float: left;
}
.right {
    float: right;
}
        .aui-switch {
            width: 2.3rem;
            height: 1.3rem;
            position: relative;
            vertical-align: top;
            border: 1px solid #dddddd;
            background-color: #dddddd;
            border-radius: 0.6rem;
            background-clip: content-box;
            display: inline-block;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            -webkit-user-select: none;
            user-select: none;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-background-clip: padding-box;
            background-clip: padding-box;
            -webkit-transition: all 0.2s linear;
            transition: all 0.2s linear;
        }
        .aui-switch:before {
            width: 1.1rem;
            height: 1.1rem;
            position: absolute;
            top: 0;
            left: 0;
            border-radius: 0.6rem;
            background-color: #fff;
            content: '';
            -webkit-transition: left 0.2s;
            transition: left 0.2s;
        }
        .aui-switch:checked {
            border-color: #2cc07c;
            background-color: #2cc07c;
        }
        .aui-switch:checked:before {
            left: 1.1rem;
        }
</style>
<header class = "all_header">
			<a class = "h_back h_back_1" data-back='1' href="javascript:void(0)"><img src="__SaleManager__/images/back_icon.png" alt=""></a>
			<span class = "h_title">新消息通知</span>
			<a class = "h_add" href="javascript:void(0)"></a>
</header>
<block name="main">
    <div class="P_con">
        <div class="P_main newsNotice bg_f no_pad">
            <div class=" ov_h">
                <span class="left">接收新消息通知</span>
                <span class="right">
                   <input type="checkbox" id="myinput" class="aui-switch" <eq name="is_allow" value="0">checked</eq>>
                </span>
            </div>
        </div>
    </div>
</block>
<include file="./Application/Home/View/default/SaleManager/layer/popup.html"/>
	<script src = "__SaleManager__/js/index.js"></script>
	<script src = "__SaleManager__/js/androidback.js"></script>
    <script type="text/javascript">
    var returnStatus;
    var returnMsgstatus;
    $(function(){
        //修改状态
        $('#myinput').change(function(){
            //得到当前值
            var value = $(this).attr('checked');
            if(value=='checked'){
                value = 0;
            }else{
                value = 1;
            }
            //提交信息
            $.post(location.href,{value:value},function(data){
                if(data.code==0){

                }else{
                    layer_msg(data.msg);
                }
            },'json');

        });
    });
        $(document).on('click','.weui-dialog__btn_primary',function(){
        			history.go(-1);
        });
    </script>
</block>